package com.sdk;

/**
 * <pre>
 *     author : liuso
 *     e-mail : xxx@xx
 *     time   : 2018/12/13
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class MessageEvent {

    private String action;
    private Object message;
    private int code;

    public MessageEvent(String act) {
        this.action = act;
    }

    public MessageEvent(String act, Object msg) {
        this.action = act;
        this.message = msg;
    }

    public MessageEvent(String act, Object msg, int code) {
        this.action = act;
        this.message = msg;
        this.code = code;
    }

    public MessageEvent(String act, int code) {
        this.action = act;
        this.code = code;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String act) {
        action = act;
    }

    public void setMessage(Object message) {
        this.message = message;
    }

    // public Object getMessage() {
//        return message;
//    }
    public Object getMessage() {
        return this.message;
    }

    public void setCode(int c) {
        this.code = c;
    }

    public int getCode() {
        return code;
    }
}